#!/bin/bash

mkdir -p downloads
cd downloads || exit

if [ "$1" != "" ]; then {

  git clone -b "$1" https://notabug.org/NoixDeXydre/Lighty

    if [ -d Lighty ]; then {
	
	  mv Lighty/ "$1"
      exit
		
	}
	
	fi
	
	exit
	
}

fi

git clone https://notabug.org/NoixDeXydre/Lighty
